$(function(){

	var $btnSearch = $('#btnSearch');
	
	$btnSearch.click(function(){
		goSearch();
		
	});
	
});


function goSearch(){
	var begin 		= $('#begin').val();
	var end 		= $('#end').val();
	var search 		= $('#search').val();
	var keywords 	= $.trim($('#keywords').val());
	
	var order_status 	= $('#order_status').val();
	var pay_status 		= $('#pay_status').val();
	var shipping_status = $('#shipping_status').val();
	
	var params = {
			'begin'		:	begin,
			'end'		:	end,
			'search'	:	search,
			'keywords'	:	keywords,
			'os':order_status,
			'ps':pay_status,
			'ss':shipping_status
	}
	
	location.href = '/index.php/Admin/Order?' + $.param(params);
}